package org.edu.modules.change.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: ve_hr_change
 * @Author: jeecg-boot
 * @Date: 2021-03-11
 * @Version: V1.0
 */
@Data
@TableName("ve_hr_change")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "变动表", description = "变动表")
public class VeHrChange implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键、自增长
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键、自增长")
    private String id;
    /**
     * 教师id
     */
//    @Excel(name = "教师id", width = 15)
    @ApiModelProperty(value = "教师id")
    private String teacherid;
    /**
     * 工号
     */
    @Excel(name = "工号", width = 15)
    @ApiModelProperty(value = "工号")
    private String gh;
    /**
     * 姓名
     */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String xm;
    /**
     * 变动类型代码
     */
    @Excel(name = "变动类型代码", width = 15, dicCode = " code", dicText = "title", dictTable = "ve_dict_dictdata where modelCode='RSBDLX'")
    @ApiModelProperty(value = "变动类型代码")
    @Dict(dicCode = "modelCode='RSBDLX' and code", dicText = "title", dictTable = "ve_dict_dictdata")
    private String bdcode;
    /**
     * 变动说明
     */
    @Excel(name = "变动说明", width = 15)
    @ApiModelProperty(value = "变动说明")
    private String dbdesc;
    /**
     * 操作人id
     */
//    @Excel(name = "操作人id", width = 15)
    @ApiModelProperty(value = "操作人id")
    private String createuserid;
    /**
     * 操作人姓名
     */
//    @Excel(name = "操作人姓名", width = 15)
    @ApiModelProperty(value = "操作人姓名")
    private String createusername;
    /**
     * 系统ID
     */
//    @Excel(name = "系统ID", width = 15)
    @ApiModelProperty(value = "系统ID")
    private Integer terminalid;
    /**
     * 变动时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "变动时间", width = 15, format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "变动时间")
    private Date createTime;
}
